class ImmuneEffect {
    float x, y;
    float radius;
    float maxRadius;
    float duration = 0.4f;
    float age = 0;

    public ImmuneEffect(float x, float y) {
        this.x = x;
        this.y = y;
        this.maxRadius = 30 + (float) Math.random() * 20;
    }

    public boolean update() {
        age += 1 / 60f;
        radius = (age / duration) * maxRadius;
        return age < duration;
    }


}
